-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add header userInfo #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
์ ๋๋ฌธ์ธ์ง ์ถฉ๋์ด ๋ฌ์ต๋๋ค..? ๋ด๊ฐ ์ฌ๋ ค์ ๋ด๋ธ๋์น ๊ณ์ ์์
ํ๊ฑด๋ฐ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@21ow ์ง์ค๋ ์ด๊ฑฐ ์ ๊ฐ ์ถ๊ฐํด๋์๊ฒ์ ์์ง ๋์๋ณด๋์ชฝ์์
์ํ์ ๊ฒ๊ฐ์์
์ผ์ชฝ ์์ด์ฝ ๋๋ฅด๋ฉด ๋์๋ณด๋ ํ๋ฉด ์๋จ๋ ํ
์คํธ์ฉ์ผ๋ก ๋ก์ปฌ์์๋ง ์ผ์๋๋ฐ ์๊ฑฐ ๊ฐ์ ธ๋ค ์ฐ์๋ฉด ๋ ๊ฒ๊ฐ์ต๋๋ค!
| font-size: 14px; | ||
| font-weight: 600; | ||
| color: var(--white); | ||
| white-space: nowrap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๊ฑฐ ๋ฒํผ ๊ธ์ ๋ง์์ง๋ฉด(?) ์ค๋ฐ๊ฟ ๋๋๋ผ๊ตฌ์
๊ธฐ๋ณธ์ผ๋ก ์์ค๋ฐ๊ฟํ๋ฉด ์ข์๊ฒ๊ฐ์ ์ถ๊ฐํ์ด์!
| } | ||
|
|
||
| export default function Header() { | ||
| export default function Header({ component: Component }: HeaderProps) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํค๋์ ๋ณด๋ฉด ๋์๋ณด๋์ชฝ์๋ง ์ฌ๋๋ค์์ด์ฝ..? ์๋๊ฒ ์์ด์
์ด๋ถ๋ถ์ ๋จธ๊ฐ์ฌ์ง ๋ชจ๋ฅด์ง๋ง~ ์ปดํฌ๋ํธ๋ฅผ props๋ก ๋ฐ๋ ๋ฐฉ๋ฒ์ผ๋ก
์ปดํฌ๋ํธ ์ฑ์ฐ๋ ํ์์ด ์ข์๊ฒ๊ฐ์ ์ถํ์์
์ฉ์ผ๋ก ์๊ฐํด์ฃผ์๋ฉด ๋ ๊ฒ๊ฐ์ต๋๋ค
| 'use client'; | ||
|
|
||
| import type { User } from '@/app/(with-header-sidebar)/mydashboard/types/user'; | ||
| import styles from './UserInfo.module.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ ์๋ก๊ฐ๋ค.. ๋ด์ ๋์ค์ ๋ด๋ฆด๊ฒ์~!
| return <header className={styles.header}>๋ด ๋์๋ณด๋</header>; | ||
| return ( | ||
| <header className={styles.header}> | ||
| <span className={styles.title}>๋ด ๋์๋ณด๋</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h2 ์ฐ๋๊ฒ ์ข์๋ณด์ด๋ค์ ์ถํ ์์ ใฑใฑ (์ ํ ์ฝ๋๋ฆฌ๋ทฐ..ใ ใ ใ ใ ใ ใ )
najitwo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์
จ์ต๋๋ค~
์ฝ๋ฉํธ ๋ฌ๊ฒ ํฌ๊ฒ ์๋ค์...๐
| <div className={styles.userInfoContainer}> | ||
| <div className={styles.userInfoWrapper}> | ||
| <UserInfo /> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
userInfoContainer, userInfoWrapper ๋๋ค
display: flex;
align-items: center;์ด ์์ฑ์ ๊ฐ์ง๊ณ ์๋๋ฐ ์ด๋ ๊ฒ ํ์ ์ด์ ๊ฐ ๋ญ๊ฐ์?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@najitwo ์ด๊ฒ.. ์ ๊ฐ ํ์ดํ๋ผ์ธ ์ ๊ฑฐ๋ฅผ ๋ฐ๋ก ํ๊ทธ์์ ์ถ๊ฐ์ํ๊ณ before ๊ฐ์ํด๋์ค ์ฌ์ฉํด์ ํ์๋ฅผ ํ๊ณ ์ถ์๋๋ฐ
๊ทธ๋ ๊ฒ ํ๋ค๊ฐ.. ๊ทธ ํ์ดํ๋ ์ด๋ฏธ์ง ์ฌ์ด์ ๊ฐญ์ margin์ ์ค์ ์ฒ๋ฆฌํ๋๋ฐ ๊ทธ๋์ div๊ฐ ์ถ๊ฐ๋๋๊น ์ ๋ ฌ์ด ๋ ์๋ง์์..
container๊บผ๋ฅผ ์ง์ฐ๋ฉด before๊ฐ์์์ ์ด๊ฒ ํ์ด์ง๊ณ
wrapper๊บผ ์ง์ฐ๋ฉด userInfo์ชฝ์ด ํ์ด์ง๊ณ ๐ค
๊ทธ๋์ ๊ฒฐ๋ก ์ด ์ด๋ ๊ฒ ๋๋ฒ๋ ธ์ต๋๋ค
ํน์ ๋ ์๋ฐํ ๋ฐฉ๋ฒ์์ผ๋ฉด ํ์...๋ฐฐ์๋ณด๊ฒ์ต๋๋ค ๐ซก
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ค... ์ง์ ํ๋๊ฑฐ ์๋๋ฉด ๊ฐ์ด ์์กํ๋ค์ ใ
ใ
ใ
ใ
๋์ค์ ํ๋ฒ ๋ณด๊ฒ ์ต๋๋ค! ๐
* โจ feat: add header and sidebar css and types * ๐ฑ style: add favicon and title * ๐ style: add header button css * ๐ style: add header button icon * โจ feat: add userInfo component with skeleton
* โจ feat: add header and sidebar css and types * ๐ฑ style: add favicon and title * ๐ style: add header button css * ๐ style: add header button icon * โจ feat: add userInfo component with skeleton
๐ Related Issue
๐ Description
๐ธ Screenshot